package com.qys.livesMall.shortVideo.model.vo.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author yxh
 */
@Data
@Schema(name = "LikedVideoVO", description = "被用户点赞的视频")
public class LikedVideoVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String nickName;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "点赞")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime likeTime;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "视频id")
    private Long videoId;

    @Schema(description = "视频封面")
    private String videoImage;

    @Schema(description = "视频地址")
    private String videoUrl;

    @Schema(description = "播放量")
    private Integer watch;
}
